How to Reverse an array in groups in python

welcome to shbcf.ru